package descentFly.away3D4.Generator
{
	import UIUtils.uif_util;
	
	import descentFly.away3D4.df_awaySpace;
	import descentFly.away3D4.df_points;
	import descentFly.df_optionsObject;
	import descentFly.away3D4.df_baseSpaceElement;
	
	public class df_exitGenerator extends df_baseSpaceElement {
		public function df_exitGenerator(a_space: df_awaySpace, a_options:Object) {
			super(a_space, a_options);
		}
		
		override protected function initialize(): void {
			Space.points.items.forEach(function(point: Object, i:int, arr: Array): void {
				if (point.type == df_points.TYPE_EXIT)
					new (options.exitTmpl.Class)(Space, uif_util.union(options.exitTmpl.options, point));
			});
		}
	}
}